import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        System.out.println("-------------");
        StringBuilder sb=new StringBuilder();
        sb.append(CreateString());
        sb.append(CreateString());
        //虽然打印出来是这样，但是如果要获得字符串还要转换一下
        System.out.println(sb);
        String str=sb.toString();
        System.out.println(str);
    }
    public static String CreateString(){
        //还记得键盘录入怎么写吗？
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入录入:");
        String str = sc.nextLine();
        return str;
    }
}